package com.sc.reducer;

import java.io.IOException;

import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;

import com.sc.bean.WordInfo;

/**
 * 
 * @Description TODO
 * @author pengjun
 * @version v1.0
 * @date 2020年7月9日
 * 
 */
public class ZHWCSortReducer extends Reducer<WordInfo, NullWritable, WordInfo, NullWritable> {

	@Override
	protected void reduce(WordInfo arg0, Iterable<NullWritable> arg1,
			Reducer<WordInfo, NullWritable, WordInfo, NullWritable>.Context arg2) throws IOException, InterruptedException {
		// TODO Auto-generated method stub
		arg2.write(arg0, NullWritable.get());
	}
}
